import React,{useMemo} from 'react';

const Foot = ({data}) => {
    const falseCount = useMemo(() => data.filter(item => !item.type).length, [data]);
    return (
        <div style={{ display:"flex" ,justifyContent:"flex-start",width:'50%'}}>
            总事项/<span>{data.length}</span>
            &nbsp;&nbsp;&nbsp;
            未完成项/<span>{falseCount}</span>
        </div>
    );
};

export default Foot;
